<?
session_start();
require_once("../security/functions.php");
require_once("../../classes/database.php");
require_once("../../classes/menu.php");
require_once("../../classes/form.php");
require_once("../../classes/generate_form.php");
require_once("../../classes/upload.php");
require_once("../../classes/bbcode.php");
require_once("../../functions/functions.php");
require_once("../../functions/date_functions.php");
require_once("../../functions/file_functions.php");
require_once("../../functions/pagebreak.php");
require_once("../../functions/rewrite_functions.php");
?>
<?
$lang_id			= getValue("lang_id", "int", "SESSION", 1);
$array_lang			= array_language();
// Input language file
require_once("../../languages/" . $array_lang[$lang_id][0] . ".php");

//Set other config variable:
$gs_imagepath		= "../images/";
$gs_error_image		= "../images/error_image.gif";
$gs_no_image		= "../images/no_image.gif";
$gs_preview			= "../../" . lang_path();
$gs_error			= "../error.php";
$gs_denypath		= "../deny.html";
$gs_today			= getdate();
$gs_change_bg		= 'onMouseOver="this.style.background=\'#FFFFAA\'" onMouseOut="this.style.background=\'#FEFEFE\'"';
$gs_category		= checkAccessCategory();
$arrCategoryType	= array (	"news"		=> "Tin tức",
								"product"	=> "Sản phẩm",
								//"download"	=> "Download",
								//"gallery"	=> "Thư viện ảnh",
								"static"	=> "Trang tĩnh",
									);

// Get config variable from database
$db_config = new db_query("SELECT con_exchange, con_root_path, con_mod_rewrite, con_static_contact, con_static_footer FROM configuration WHERE con_lang_id = " . $lang_id);
if($row = mysql_fetch_array($db_config->result)){
	while(list($data_field, $data_value) = each($row)){
		if(!is_int($data_field)){
			$$data_field = $data_value;
		}
	}
}
$db_config->close();
unset($db_config);

$arrCompare = array_compare();
$arrDataType = array_data_type();

$arrNumCols = array();
for ($i=3;$i<=40;$i++)
{
	$arrNumCols[$i] = $i;
}
?>